package com.inspur.common;

public enum  ResultCode {

    SUCCESS(200,"成功"),
    OTHER_ERROR(-1,"其它错误"),

    /**
     * 用户相关
     */
    USER_NOT_EXIST(1000,"用户不存在"),
    PASSWORD_ERROR(1001,"密码错误"),
    PASSWORD_IS_EMPTY(1002,"密码为空"),
    USERNAME_IS_EMPTY(1003,"账号为空");




















    private final int code;
    private final String desc;

    ResultCode(int code,String desc){
        this.code=code;
        this.desc=desc;
    }
    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
